package org.edu.modules.logistics.ct.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Timestamp;

import org.edu.common.impt.Ex;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * entity-餐厅表
 */
@TableName("ve_houqin_canting")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="餐厅表对象", description="ve_houqin_canting")
public class VeHqCanting extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "餐厅名称")
    @Length(max = 50)
    @Ex(value="餐厅名称")
    private String name;

    @TableField
    @ApiModelProperty(value = "餐厅位置")
    @Length(max = 100)
    @Ex(value="餐厅名称")
    private String ctwz;

    @TableField
    @ApiModelProperty(value = "")
    @Length(max = 50)
    @Ex(value="负责人工号",type="user")
    private String fzrId;

    @TableField
    @ApiModelProperty(value = "负责人")
    @Length(max = 50)
    private String fzrName;

    @TableField
    @ApiModelProperty(value = "餐厅楼层")
    @Ex(value="餐厅楼层")
    private Integer ctlc;

    @TableField
    @ApiModelProperty(value = "建设时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    @Ex(value="建设时间")
    private Date jsTime;

    @TableField
    @ApiModelProperty(value = "容纳人数")
    @Ex(value="容纳人数")
    private Integer rnrs;

    @TableField
    @ApiModelProperty(value = "开放窗口数")
    @Ex(value="开放窗口数")
    private Integer kfcks;

    @TableField
    @ApiModelProperty(value = "状态：1=在用，0=废弃")
    @Ex(value="餐厅状态")
    private Integer status;

    @TableField
    @ApiModelProperty(value = "备注说明")
    @Length(max = 500)
    @Ex(value="人员备注")
    private String remark;
}
